package com.wy2cloud.authclient.controller;

import java.security.Principal;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {
    
    @RequestMapping("/user")
    public Principal user(Principal principal) {
        return principal;
    }
}
